Background and Aim: Prevalence of gallstones is higher in the patients with diabetes mellitus than in the non-diabetic patients. The pathophysiological mechanism of gallstone formation in type 2 diabetic patients is still unclear. The aim of this case-control study was to evaluate gallbladder motor function as one of the contributing factors to gallbladder dysfunction in type 2 diabetic patients by sonography of gallbladder. Materials and Methods: In this study our case group included 54 patients with diabetes mellitus and control group consisted of 51 healthy subjects. The groups were matched in regard to age, gender and BMI. Ultrasound was performed for all subjects in the two groups while fasting and also after eating light meals. Gallbladder Volume was measured in the fasting state (V1) and after eating (V2), and ejection fraction of the gallbladder was calculated. Also, in the subjects, demographic variables such as age, gender, BMI and number of childbirths were investigated. Results: Gender ratio, age, number of births and BMI were the same in both case and control groups (P> 0. 05). Independent t-test showed no significant relationship in the mean values of V1, V2 and EF between the case and control groups (P> 0. 05). Also, there was no significant difference between gender and mean values of V1, V2 and EF between the groups (P> 0. 05). The prevalence of gallstones was significantly higher in the diabetic group than in the control group (P = 0. 026). Conclusion: The results of the present study confirmed the high prevalence of gallstones in the diabetic patients but there were no statistical difference between the groups in relation to gallbladder motor function. However, other factors may be involved in the formation of gallstones in the diabetic patients.